﻿using Microsoft.EntityFrameworkCore.ChangeTracking;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WepApi07.Domain
{
    public interface IResponsitory<T>
    {
        IQueryable<T> Table { get; }
        void Insert(T entity);

        void InsertBulk(IEnumerable<T> entity);

        void Delete(int id);

        void Delete(T entity);

        void Delete(IEnumerable<T> entities);

        void Update(T entity);

        T GetById(int id);
    }
}
